import request from '@/router/axios';

export const getList = (current,size, params) => {
  return request({
    url: '/api/ManageUserGroupInit/GetGroupByUserList',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const getDetail = (id) => {
  return request({
    url: '/api/school-service/jxgy/detail',
    method: 'get',
    params: {
      id
    }
  })
}

export const remove = (row) => {
  return request({
    url: '/api/ManageUserGroupInit/DelUserByGroup',
    method: 'post',
    data: row
  })
}

export const add = (row) => {
  return request({
    url: '/api/ManageUserGroupInit/AddOrEditUserByGroup',
    method: 'post',
    data: row
  })
}

export const update = (row) => {
  return request({
    url: '/api/ManageUserGroupInit/AddOrEditUserByGroup',
    method: 'post',
    data: row
  })
}

export const getSchoolUserSelect = (params) => {
  return request({
    url: '/api/ManageUserGroupInit/GetSchoolUserSelect',
    method: 'get',
    params: params
  })
}


